package com.movie.ticket.sale.moviecommon.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.redis.core.RedisHash;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * <p>
 * 
 * </p>
 *
 * @author Ticket
 * @since 2020-12-05
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@RedisHash("TCinemaAcount")
public class TCinemaAcount implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 影院收入统计 每月1号3:00 am
     */
    @Id
    private Integer id;

    private Integer cinemaId;

    /**
     * 当月金额
     */
    private Double count;

    /**
     * 年月
     */
    private LocalDate time;

    /**
     * 0:未转帐 1：已结清
     */
    private Integer state;


}
